
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="start" />
        <title>Registrierung</title>
    </head>
    <body>
            <h1>Registrierung</h1>
            
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
             <g:if test="${flash.error}">
            <div class="errors">${flash.error}</div>
            </g:if>
            <g:hasErrors bean="${userInstance}">
            <div class="errors">
                <g:renderErrors bean="${userInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                  <h2><b>Logindaten</b></h2>
                    <table  id="register2">
                        <tbody>
                          <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="loginName">Login Name: *</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:userInstance,field:'loginName','errors')}">
                                    <input type="text" id="loginName" name="loginName" value="${fieldValue(bean:userInstance,field:'loginName')}"/>
                                </td>
                          </tr>
                          <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="passwort">Passwort: *</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:userInstance,field:'passwort','errors')}">
                                    <g:passwordField name="passwort1"  />
                                </td>
                          </tr>
                          <tr class="prop">
                                 <td valign="top" class="name">
                                    <label for="passwort">Passwort Wdh.: *</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:userInstance,field:'passwort','errors')}">
                                     <g:passwordField name="passwort2"  />
                                </td>
                            </tr>
                        </tbody>
                  </table>
                  <h2><b>Persönliche Daten</b></h2>
                  <table id="register2">
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="vorname">Vorname:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:userInstance,field:'vorname','errors')}">
                                    <input type="text" id="vorname" name="vorname" value="${fieldValue(bean:userInstance,field:'vorname')}"/>
                                </td>
                          </tr>
                          <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nachname">Nachname: *</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:userInstance,field:'nachname','errors')}">
                                    <input type="text" id="nachname" name="nachname" value="${fieldValue(bean:userInstance,field:'nachname')}"/>
                                </td>
                            </tr> 
                          <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="strasse">Strasse:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:userInstance,field:'strasse','errors')}">
                                    <input type="text" id="strasse" name="strasse" value="${fieldValue(bean:userInstance,field:'strasse')}"/>
                                </td>
                            </tr>
                             <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="plz">Plz:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:userInstance,field:'plz','errors')}">
                                    <input type="text" id="plz" name="plz" value="${fieldValue(bean:userInstance,field:'plz')}"/>
                                </td>
                          </tr>
                          <tr class="prop">
                                 <td valign="top" class="name">
                                    <label for="ort">Ort:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:userInstance,field:'ort','errors')}">
                                    <input type="text" id="ort" name="ort" value="${fieldValue(bean:userInstance,field:'ort')}"/>
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="email">Email: *</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:userInstance,field:'email','errors')}">
                                    <input type="text" id="email" name="email" value="${fieldValue(bean:userInstance,field:'email')}"/>
                                </td>
                            </tr> 
                        
                            
                        </tbody>
                    </table>
                </div>
              <div class="hinweis">
               * Pflichtfelder
              </div>
                <div class="buttons" style="margin-left: 250px;">
                    <span class="button"><input type="submit" value="Abschicken" /></span>
                </div>
            </g:form>
        
    </body>
</html>
